package com.kata.chapter14;

/**
 * Created by Solidsnake on 2014/12/9.
 */
public class Main {
    public static void main(String[] args) {
        Gun gun = new Gun();
        System.out.println("一把普通的枪");
        System.out.println("=================");
        gun.pop();
        System.out.println("\r\n");


        System.out.println("附加火焰效果");
        gun = new FireGun(gun);
        System.out.println("=================");
        gun.pop();
        System.out.println("\r\n");

        System.out.println("附加雷电效果");
        gun = new LightningGun(gun);
        System.out.println("=================");
        gun.pop();
        System.out.println("\r\n");
    }
}
